package com.ztesoft.web.baseconfig.db.dao.mapper;

import com.ztesoft.web.baseconfig.db.arg.RDmArg;
import com.ztesoft.web.baseconfig.db.po.RDmPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IRDmMapper {
    
    List<Integer> countByArg(RDmArg arg);

    List<RDmPO> selectByArg(RDmArg arg);

    RDmPO selectByPrimaryKey(Integer id);

    List<RDmPO> selectByArgAndPage(RDmArg arg, RowBounds rowBound);

    int insert(RDmPO record);

    int insertSelective(RDmPO record);

    int insertBatch(@Param("list") List<RDmPO> records);

    int updateByArgSelective(@Param("record") RDmPO record,
            @Param("arg") RDmArg arg);

    int updateByArg(@Param("record") RDmPO record,
            @Param("arg") RDmArg arg);

    int updateByPrimaryKeySelective(RDmPO record);

    int updateByPrimaryKey(RDmPO record);
    
    int deleteByArg(RDmArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}